package com.hx.vending.service.impl;

import com.hx.vending.bean.Admin;
import com.hx.vending.dao.AdminMapper;
import com.hx.vending.service.IAdminService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2019/1/9.
 */
@Service
public class AdminServiceImpl implements IAdminService {

    @Resource
    private AdminMapper adminMapper;

    @Override
    public Admin selectByPrimary(Admin admin) {
        return adminMapper.selectByPrimary(admin);
    }

    @Override
    public int insertSelective(Admin admin) {
        return adminMapper.insertSelective(admin);
    }

    @Override
    public List<Admin> selectAdmin(Map<String, Object> map) {
        return adminMapper.selectAdmin(map);
    }

    @Override
    public int updateByPrimaryKey(Admin admin) {
        return adminMapper.updateByPrimaryKey(admin);
    }

    @Override
    public Integer deleteByAdminId(List<Integer> integerList) {
        return adminMapper.deleteByAdminId(integerList);
    }
}
